import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: AliceMana
 * Date: 2022-08-13
 * Time: 21:08
 */
// https://www.nowcoder.com/questionTerminal/0349b07510cd466ca339fab80abb1959
public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str1 = in.nextLine();
        String[] strings = str1.split(" ");
        System.out.println(strings[strings.length-1].length());
    }
}
